/*
* @Author: wanghongfucoder
* @Date:   2017-04-11 10:18:28
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-04-11 10:22:37
*/

public class Dispatcher {
	private  StudentView studentView;
	private  HomeView homeView;
	public Dispatcher(){
		studentView=new StudentView();
		homeView=new HomeView();
	}

	public void dispatch(String request){
		if (request.equalsIgnoreCase("STUDENT")) {
			studentView.show();
		}else{
			homeView.show();
		}
	}
}